﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.Common;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Reflection.Emit;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;

namespace JYH.Data
{
    public class ExpandoColumn : JYHColumn
    {
        public override void SetValue(object target, object val) { (target as IDictionary<string, object>)[ColumnName] = val; }
        public override object GetValue(object target)
        {
            object val = null;
            (target as IDictionary<string, object>).TryGetValue(ColumnName, out val);
            return val;
        }
        public override object ChangeType(object val) { return val; }
    }
}
